package com.ruibang.glass.quality.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 电脑设置状态信息
 * </p>
 *
 * @author wujie
 * @since 2020-08-06
 */

@Data
public class TotalEquData implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id")
    private String id;
    @TableField(value = "CustomerPanelId")
    private String CustomerPanelId;
    @TableField(value = "CustomerBatchId")
    private String CustomerBatchId;
    @TableField(value = "MachineId")
    private String MachineId;
    @TableField(value = "DefectCount")
    private long DefectCount;
    @TableField(value = "StartTime")
    private LocalDateTime StartTime;
    @TableField(value = "DefectName")
    private String DefectName;
    @TableField(value = "TiltedSizeLengthMM")
    private double TiltedSizeLengthMM;
    @TableField(value = "TiltedSizeWidthMM")
    private double TiltedSizeWidthMM;
    @TableField(value = "MaterialCenterDW")
    private double MaterialCenterDW;
    @TableField(value = "MaterialCenterCW")
    private double MaterialCenterCW;
    @TableField(value = "TiltedSize")
    private double TiltedSize;
    @TableField(value = "TiltedDepth")
    private double TiltedDepth;
    @TableField(value = "TiltedDiv")
    private double TiltedDiv;
    @TableField(value = "is_read")
    private int isRead;
    @ApiModelProperty("0:半成品，1:成品")
    @TableField(value = "is_finished")
    private int isFinished;

    @ApiModelProperty("横切时间")
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime stationStartTime;

}
